package com.enjoyor.soa.traffic.server.efoms.dubbo.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.enjoyor.soa.traffic.api.dto.efoms.WranTacticsInfoDto;
import com.enjoyor.soa.traffic.api.service.dubbo.efoms.IDubboWranTacticsService;
import com.enjoyor.soa.traffic.server.efoms.dubbo.manage.ManageWranTacticsService;
import com.enjoyor.soa.traffic.util.pojo.ResultPojo;
import org.springframework.beans.factory.annotation.Autowired;

@Service(version = "1.0.0", timeout = 4000)
public class DubboWranTacticsService implements IDubboWranTacticsService {
	
	@Autowired
	private ManageWranTacticsService manageWranTacticsService;
    
    @Override
    public ResultPojo selectWranTacticsById(String tacticsId){
    	ResultPojo resultPojo = manageWranTacticsService.selectWranTacticsById(tacticsId);
    	return resultPojo;
    }

    @Override
	public ResultPojo selectWranTacticsList(String tacticsId, String tacticsLevelCode, 
			String wranTypeCode, String wranLevelCode, String devTypeCode, String devId){
		ResultPojo resultPojo = manageWranTacticsService.selectWranTacticsList(tacticsId, tacticsLevelCode,
				wranTypeCode, wranLevelCode, devTypeCode, devId);
		return resultPojo;
	}
    
    @Override
    public ResultPojo insertWranTacticsInfo(WranTacticsInfoDto wranTacticsInfoDto, String personName) {
    	ResultPojo resultPojo = manageWranTacticsService.insertWranTacticsInfo(wranTacticsInfoDto, personName);
    	return resultPojo;
    }
    
    @Override
    public ResultPojo updateWranTacticsInfo(WranTacticsInfoDto wranTacticsInfoDto, String personName) {
    	ResultPojo resultPojo = manageWranTacticsService.updateWranTacticsInfo(wranTacticsInfoDto, personName);
    	return resultPojo;
    }
    
    @Override
    public ResultPojo deleteWranTacticsInfo(String tacticsId, String personName) {
    	ResultPojo resultPojo = manageWranTacticsService.deleteWranTacticsInfo(tacticsId, personName);
    	return resultPojo;
    }
}
